using System.ComponentModel.DataAnnotations.Schema;
using System.Globalization;

namespace Models
{
    public class tb_PointCheckRecord
    {
        //主键
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int? iID { get; set; } // 自增ID
        public string ID { get; set; } //与设备交互用的通讯ID
        public string EquipmentName { get; set; } //设备名称
        public string Operator { get; set; }    //操作员
        public DateTime CheckTime { get; set; }   //检查时间
        public string ZC_SeriesNo { get; set; }  //总成序列码
        public string Result { get; set; }      //检查结果
        public DateTime dDate { get; set; } //保存时间

        public async Task<PointCheckRecord> TransToDomainModel()
        {
            return new PointCheckRecord()
            {
                iID = iID,
                ID = ID,
                EquipmentName = EquipmentName,
                Operator = Operator,
                CheckTime = CheckTime,
                ZC_SeriesNo = ZC_SeriesNo,
                Result = Result,
                dDate = dDate
            };
        }
    }
}
